package com.wing.sell.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang.StringUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 销售订单表
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sel_finished_order")
public class FinishedOrder extends BaseEntity<FinishedOrder> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编码
     */
    private String selCode;


    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 关联物料数
     */
    private Integer skuQuantity;

    /**
     * 联系人id
     */
    private Long contactId;

    /**
     * 总金额
     */
    private BigDecimal totalMoney;

    /**
     * 审核人
     */
    private Long auditId;

    /**
     * 审核姓名
     */
    private String auditName;

    /**
     * 审核时间
     */
    private LocalDateTime auditTime;

    /**
     * 订单状态
     */
    private String selStatus;

    /**
     * 订单类型
     */
    private String selType;

    /**
     * 客户类型
     */
    private String customerType;

    /**
     * 计划交货时间
     */
    private LocalDateTime planOnTime;

    /**
     * 排产状态
     */
    private String pcStatus;

    /**
     * 排产状态名称
     */
    @TableField(exist = false)
    private String pcStatusName;
}
